#### 9/15/16. This is the README for Eggers and Spirling
#### INCUMBENCY EFFECTS AND THE STRENGTH OF PARTY PREFERENCES:
#### EVIDENCE FROM MULTIPARTY ELECTIONS IN THE UK (JOP)


### CODE
There are four R scripts.  Packages used are rdd, rdrobust (version 0.80), foreign

# UK_party_incumbency_effects_all_analysis.r		
This outputs all figures and tables for the paper

# latex_cmds.r
This outputs tables in LaTeX format, if desired

# modDCdensity.r
This produces the adjusted McCrary plots and analysis

# rd_functions.r
This is a self-written RD plotting function

#### DATA
There are 4 .csv files and 7 .dta files required for replication.
These are:

incumbency_advantage_con_based_all_20150122_including_unionists.csv		
incumbency_advantage_lib_based_all_20150122.csv
incumbency_advantage_lab_based_all_20150122.csv
data/vote_totals_2001_and_2005.csv

74feb.dta
79BESS.dta
92BES.dta
97BES.dta
2001BES.dta
2005BESa.dta
2010BESprepost.dta


#### USER NOTES
Users must create a directory output/20160913 for the relevant files to be outputted to.
Notice that the date label for this folder can be changed, and this is done via output_date= in the main .R script.
